Contents | Index | < Browse | Browse >

LETTERsystemULETTER Executes a CLI command.

Overview
#include <stdlib.h>

r = system(command);

int r;
const char *command;

Portability
ANSI

Description
Executes the command "command" in a shell environment synchronously to the current process.

Note
This function uses AmigaDOS's SystemTags() without any special tags. The command will thus be executed in the user's standard shell. While with most Amiga users this will be the standard shell, it may have been replaced by other shells, which is why you should avoid using shell-specific features.

Returns
The return value of SystemTags, that is, the return value of the command executed (zero if okay).